package com.etone.ibatistest.dao;

import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;
import java.util.List;

import junit.framework.TestCase;

import com.ibatis.common.resources.Resources;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;

public class UserDaoImplBuildMany extends TestCase{

	private static SqlMapClient sqlMapClient = null;
	
	public static void main (String... arsg){
		try {
			List<SqlMapClient> clients = new ArrayList<SqlMapClient>();
			
			for(int i=0;i<1000;i++){
				Reader reader = Resources.getResourceAsReader("com/etone/ibatistest/H2map/SqlMapConfig.xml");
				System.out.println(i);
				sqlMapClient = SqlMapClientBuilder.buildSqlMapClient(reader);
				clients.add(sqlMapClient);
			}
		} catch (IOException e) {
		}
	}
	
	

}
